package org.jeecg.modules.common.bean.influx;

import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.jeecg.modules.common.bean.InfluxDbEntity;

import java.time.Instant;

/**
 * @Classname Dtu
 * @Description TODO
 * @Date 2022/12/7 11:13
 * @Created by 10835
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Measurement(name = "dtu")
public class Dtu extends InfluxDbEntity {
    @Column(tag = true)
    private String clientId;
    @Column
    private Double current_1;
    @Column
    private Double current_2;
    @Column
    private Integer switch_1;
    @Column
    private Integer switch_2;
    @Column
    private Integer switch_3;
    @Column
    private Integer switch_4;
    @Column(timestamp = true)
    private Instant time;
}
